package com.aric.springbootmusic.entity.pojo;

import com.aric.springbootmusic.enums.PsLevel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor

@TableName(value="permission")
public class Permission{
   private Integer psId;
   private String psName;
   private String psCname;
   private String psPath;
   private Integer psPid;
   private PsLevel psLevel;
   @TableField(exist=false)
   private List<Permission> children;
}
